ActionController::Routing::Routes.draw do |map|
  map.login  '/login/',  :controller => 'sessions', :action => 'new'
  map.logout '/logout/', :controller => 'sessions', :action => 'destroy', :method => :delete


  map.new_contact '/contact/new', :controller => 'contact', :action => 'new', :conditions => { :method => :get }
  map.contact '/contact', :controller => 'contact', :action => 'new', :conditions => { :method => :get }
  map.formatted_contact '/contact.:format', :controller => 'contact', :action => 'new', :conditions => { :method => :get }
  map.contact '/contact', :controller => 'contact', :action => 'create', :conditions => { :method => :post }

  map.resources :sessions
  map.resources :services
  map.resources :employees
  map.resources :articles
#  map.resources :textblocks

  map.update_textblock 'textblock/:id', :controller => 'textblocks', :action => 'update', :conditions => { :method => :put }
  map.textblock 'textblock/:id', :controller => 'textblocks', :action => 'edit', :conditions => { :method => :get }
  
  map.simple_captcha '/simple_captcha/:action', :controller => 'simple_captcha'

  map.root :controller => 'static', :action => 'home', :format => :html
  map.contact_map 'map.:format', :controller => 'static', :action => 'map', :format => :html

#  map.connect ':controller/:action/:id'
#  map.connect ':controller/:action/:id.:format'
end
